export default {
    sku: {
        // 所有sku规格类目与其值的从属关系，比如商品有颜色和尺码两大类规格，颜色下面又有红色和蓝色两个规格值。
        // 可以理解为一个商品可以有多个规格类目，一个规格类目下可以有多个规格值。
        tree: [
            {
                k: '颜色',
                k_id: '1',
                v: [
                    {
                        id: '30349',
                        name: '黑色',
                        imgUrl:
                            'http://img12.360buyimg.com/n7/jfs/t1/59022/28/10293/141808/5d78088fEf6e7862d/68836f52ffaaad96.jpg'
                    },
                    {
                        id: '1215',
                        name: '白色',
                        imgUrl:'http://img10.360buyimg.com/n7/jfs/t1/52252/35/10516/124064/5d7808e0E46202391/7100f3733a1c1f00.jpg'
                    }
                ],
                k_s: 's1',
                count: 2
            },
            {
                k: '尺寸',
                k_id: '2',
                v: [
                    {
                        id: '1193',
                        name: '1'
                    },
                    {
                        id: '1194',
                        name: '2'
                    }
                ],
                k_s: 's2',
                count: 2
            }
        ],
        // 所有 sku 的组合列表，如下是：白色1、白色2、天蓝色1、天蓝色2
        list: [
            {
                id: 2259,
                price: 120, //价格
                discount: 122,
                s1: '1215',
                s2: '1193',
                s3: '0',
                s4: '0',
                s5: '0',
                stock_num: 20, //库存
                goods_id: 946755
            },
            {
                id: 2260,
                price: 110,
                discount: 112,
                s1: '1215',
                s2: '1194',
                s3: '0',
                s4: '0',
                s5: '0',
                stock_num: 2, //库存
                goods_id: 946755
            },
            {
                id: 2257,
                price: 130,
                discount: 132,
                s1: '30349',
                s2: '1193',
                s3: '0',
                s4: '0',
                s5: '0',
                stock_num: 40, //库存
                goods_id: 946755
            },
            {
                id: 2258,
                price: 100,
                discount: 100,
                s1: '30349',
                s2: '1194',
                s3: '0',
                s4: '0',
                s5: '0',
                stock_num: 50, //库存
                goods_id: 946755
            }
        ],
        price: '5.00',
        stock_num: 227, // 商品总库存
        none_sku: false,  // 是否无规格商品
        hide_stock: false  // 是否隐藏剩余库存
    },
    goods_id: '946755',
    quota: 3, //限购数量
    quota_used: 0,  //已经购买过的数量
    goods_info: {
        title: '测试商品A',
        picture:
            'http://120.25.248.26:7070/2020-08-27/08306f093ee7.jpg'
    },
    initialSku:{
        s1: "0001",
        s2: "1001",
        selectedNum: 3
    }
};
